<?php

	include("common.php");
	
	unset($_SESSION['username']);
	unset($_SESSION['email']);
	unset($_SESSION['type']);
	
	include("header.php");
	
?>
<?php if(!AJAX){ ?><h1>登出</h1><?php } ?>
<p>登出成功<?php if(!AJAX){ ?>，請<a href="index.php">按此</a>返回首頁<?php } ?>。</p>
<script type="text/javascript">
	setTimeout(function(){ location.href = "index.php"; }, 1000);
</script>
<?php

	include("sidebar.php");
	include("footer.php");
	
?>